import axios from "axios";
const context = "/deviceservice";

/***
 * 获取订单分页数据
 */
export function getOrderPaginaton(data: any) {
  return axios.get(`${context}/mallOrder/pagination`, { params: data });
}

/***
 * 删除订单
 */
export function batchRemoveOrder(data: any) {
  return axios.post(`${context}/mallOrder/batchRemove`, data);
}

/***
 * 获取订单明细分页列表
 */
export function getOrderDetailPagination(data: any) {
  return axios.get(`${context}/mallOrderDetail/deviceOrderPagination`, {
    params: data
  });
}
